package com.red.star.wechat.data.entity;


import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "t_banner")
public class Banner extends BaseEntity {
    private Integer id;

    private String name;

    private String mallCode;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private String link;

    private Integer linkType;

    private Integer status;

    private String bigImage;

    private String smallImage;

    private Integer sort;

    private String appId;

    private Integer posterId;

    private String posterType;

    private String posterName;
}
